package com.five.mapper;

import com.five.pojo.Collection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface CollectionMapper {
    void insert(Collection collect);

    int countByUserIdAndNovelId(@Param("readerId") Long readerId, @Param("novelId") Long novelId);

    int deleteByReaderIdAndNovelId(@Param("readerId") Long readerId, @Param("novelId") Long novelId);

    List<Long> getNovelIdByReaderId(Long readerId);
}